<template>
  <BasicTabs v-model="activeTab" :tabs="tabs" />
</template>

<script setup lang="ts">
  import { isQuYu } from '@/utils'
  import { TabPaneItem } from '@/components/ui/basic-tabs/types'
  import YuanGongView from './YuanGongView.vue'
  import JiTaiView from './JiTaiView.vue'

  const activeTab = ref('按员工查看')
  const tabs = shallowRef<TabPaneItem[]>([
    {
      name: '按员工查看',
      label: '按员工查看',
      slots: { default: () => h(YuanGongView, { isQuYu: isQuYu.value }) }
    },
    {
      name: '按机台查看',
      label: '按机台查看',
      slots: { default: () => h(JiTaiView, { isQuYu: isQuYu.value }) }
    }
  ])
</script>
